package com.niiwoo.civet.account.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by lujing on 2017/11/9.
 */
@AllArgsConstructor
@Getter
public enum RefundStatusEnum {
    HANDLING((byte)1,"处理中"),
    SUCCESS((byte)2,"成功"),
    FAIL((byte)3,"失败"),
    PART_SUCCESS((byte)4,"部分成功");

    private byte value;
    private String desc;

    public static RefundStatusEnum enumOf(Byte value){
        for (RefundStatusEnum refundEnum : RefundStatusEnum.values()){
            if (value.equals(refundEnum.getValue())){
                return refundEnum;
            }
        }
        return null;
    }


}
